package model

type New struct {
	Id      int    `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
	AdminId int    `json:"admin_id" form:"admin_id" gorm:"column:admin_id;comment:用户id"`
	Title   string `json:"title" form:"title" gorm:"column:title;comment:标题"`
	Content string `json:"content" form:"content" gorm:"column:content;comment:内容"`
	Url     string `json:"url" form:"url" gorm:"column:url;comment:图片路径"`
	Time    int    `json:"time" form:"time" gorm:"column:time;comment:发布时间"`
}

func (New) TableName() string {
	return "new"
}
